<template lang="pug">
  div#UserFriends
    div.top-header
      i.iconfont.icon-fanhui(@click="$router.push('/wode')")
      span.top-header-title 我的好友
      i.iconfont.icon-tianjia(@click="$router.push('/addFriend')")
    div.friends-block
      div.friend-list(v-for="item in friendsData")
        div.friend-head
          img(:src="item.friendHead")
        div.friend-name {{item.friendName}}
        div.delete-btn 删除

</template>
<script>
  export default {
    data() {
      return {
        friendsData: [{
          friendHead: require('@/assets/userFriends/userHead.png'),
          friendName: '发条音乐人'
        }, {
          friendHead: require('@/assets/userFriends/userHead.png'),
          friendName: '超超'
        }, {
          friendHead: require('@/assets/userFriends/userHead.png'),
          friendName: '铁皮人'
        }]
      }
    }
  }
</script>
<style scoped lang="less">
  #UserFriends {
    .icon-tianjia {
      float: right;
    }
    .friends-block{
      margin-top: 5px;
      .friend-list{
        overflow: hidden;
        padding:10px 20px;
        background: #fff;
        border-bottom:1px solid #f5f5f5;
        .friend-head{
          height:30px;
          width: 30px;
          float: left;
        }
        .friend-name{
          font-size: 14px;
          float: left;
          line-height: 30px;
          margin-left: 10px;
        }
        .delete-btn{
          height:20px;
          width: 50px;
          background: #080c15;
          color: #fff;
          float: right;
          font-size: 12px;
          line-height: 20px;
          margin-top: 5px;
        }
      }
    }
  }
</style>
